package com.ssy.lingxi.report.repository.report;

import com.ssy.lingxi.report.entity.report.MemberTallyReportDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface MemberTallyReportRepository extends JpaRepository<MemberTallyReportDO, Long>, JpaSpecificationExecutor<MemberTallyReportDO> {

    /**
     * 根据会员id、角色id查询计数报表
     * @param memberId
     * @param roleId
     * @return
     */
    MemberTallyReportDO findByMemberIdAndRoleId(Long memberId, Long roleId);
}